<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $guarded = ['id'];


    public function category()
    {
        return $this->belongsTo(Category::class,"category_id","id");
    }
}
